<template>
  <div class="http404-container">
    <div class="http404">
      <div class="pic404">
        <img class="pic404__img"         
          src='@/assets/404_images/404.png'
          alt="404"
        />
      </div>
      <div class="message404">        
        <div class="message404__headline">{{ message }}</div>
        <div class="message404__info">
          请检查您输入的URL是否正确， 或单击按钮下面返回主页。
        </div>
        <a href="" class="message404__return-home">回到主页</a>
      </div>
    </div>
  </div>
</template>

<script setup>
import { computed } from 'vue'

const message = computed(() => {
  return '没有这个页面...'
})

// const img404 = computed(() => {
//   return require('@/assets/404_images/404.png')
// })
</script>

<style lang="scss" scoped>
.http404-container {
	margin: 10px;
}
.http404 {
  display: flex;
	flex-direction: column;
	align-items: center;
  .pic404 {        
		&__img{
			width: 100%;
		}
  }
  .message404 {   
    padding: 10px;    
    &__headline {
      font-size: 20px;
      line-height: 24px;
      color: #222;
      font-weight: bold;
      opacity: 0;
      margin-bottom: 10px;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.1s;
      animation-fill-mode: forwards;
    }
    &__info {
      font-size: 13px;
      line-height: 21px;
      color: grey;
      opacity: 0;
      margin-bottom: 10px;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.2s;
      animation-fill-mode: forwards;
    }
    &__return-home {
      display: block;
      float: left;
      width: 240px;
      height: 36px;
      background: #1482f0;
      border-radius: 10px;
      text-align: center;
			text-decoration:none;
      color: #ffffff;
      opacity: 0;
      font-size: 14px;
      line-height: 36px;
      cursor: pointer;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.3s;
      animation-fill-mode: forwards;
    }
    @keyframes slideUp {
      0% {
        transform: translateY(60px);
        opacity: 0;
      }
      100% {
        transform: translateY(0);
        opacity: 1;
      }
    }
  }
}
</style>
